import request from '@/utils/request'

// 查询支持项目列表
export function examProjectList(query) {
  return request({
    url: '/business/examProjects',
    method: 'get',
    params: query
  })
}

// 新增项目
export function add(data, id) {
  return request({
    url: '/business/examProjects',
    method: 'post',
    data: data
  })
}

// 修改项目
export function update(data, id) {
  return request({
    url: '/business/examProjects/' + id,
    method: 'put',
    data: data
  })
}

export function del(id) {
  return request({
    url: '/business/examProjects/' + id,
    method: 'delete'
  })
}

//获取所有用户信息
export function getUserList(query) {
  return request({
    url: '/system/user/list',
    method: 'get',
    params: query
  })
}

// 修改用户权限
export function updateUsers(data, id) {
  return request({
    url: '/business/examProjects/users/' + id,
    method: 'put',
    data: data
  })
}

